import request from '@/utils/request'

export function listDiagnosisDrug(query) {
  return request({
    url: '/diagnosis/drug/list',
    method: 'get',
    params: query
  })
}

export function createDiagnosisDrug(data) {
  return request({
    url: '/diagnosis/drug/create',
    method: 'post',
    data
  })
}

export function readDiagnosisDrug(query) {
  return request({
    url: '/diagnosis/drug/read',
    method: 'get',
    params: query
  })
}

export function updateDiagnosisDrug(data) {
  return request({
    url: '/diagnosis/drug/update',
    method: 'post',
    data
  })
}

export function deleteDiagnosisDrug(data) {
  return request({
    url: '/diagnosis/drug/delete',
    method: 'post',
    data
  })
}
